|
AT-NFC
2.1 (win)
AT-NFC kernel set
|
Go to the source code of this file.
Functions | |
| KER_RES KER_API | upiNfcInit (KER_CTX_INIT_PARAM const KER_VOID *pConfigID, KER_INT16U usConfigIDLen, const KER_CHAR *pchKernelFiles, KER_INT16U usKernelFilesLen) |
| Performs kernel initialization. More... | |
| KER_RES KER_API | upiNfcDeInit (KER_CTX_SINGLE_PARAM) |
| Performs kernel de-initialization. More... | |
| KER_BOOL KER_API | upiNfcVerInfo (KER_CTX_PARAM const KER_CHAR **ppchEmvVer, KER_INT16U *pusEmvVerLen, const KER_CHAR **ppchLibVer, KER_INT16U *pusLibVerLen) |
| Obtains emv kernel library version info. More... | |
| KER_RES KER_API | upiNfcTran (KER_CTX_PARAM const NFC_EP_PRE_DATA *pEpPRE, const NFC_EP_PPSE_DATA *pEpPPSE, const NFC_EP_TRAN_DATA *pEpTranData, KER_TRAN **ppTran, NFC_OUTCOME **ppOutcome) |
| Initiates transaction processing by kernel. More... | |
| KER_BOOL KER_API | upiNfcTranRelease (KER_CTX_PARAM KER_TRAN *pTran) |
| Releases NFC Transaction container structure. More... | |
| KER_RES KER_API | upiNfcGetData (KER_CTX_PARAM KER_TRAN *pTran, KER_INT16U usOptions, KER_BYTE *pbtData, KER_INT16U *pusDataLen) |
| Transaction data request. More... | |
| KER_RES KER_API | upiNfcGetDataByTag (KER_CTX_PARAM KER_TRAN *pTran, KER_INT16U usOptions, const KER_BYTE *pbtTag, KER_BYTE btTagSize, KER_BYTE *pbtData, KER_INT16U *pusDataSize) |
| transaction data request More... | |
| KER_RES KER_API | upiNfcGetDataByTagList (KER_CTX_PARAM KER_TRAN *pTran, KER_INT16U usOptions, const KER_BYTE *pbtTagList, KER_INT16U usTagListSize, KER_BYTE *pbtData, KER_INT16U *pusDataSize) |
| transaction data request More... | |
| KER_BOOL KER_API | upiCheckOption (KER_CTX_PARAM KER_TRAN *pTran, KER_INT16U usOption, KER_INT16U usParam, KER_VOID *pParam) |
| Check options callback Define this function outside the lib to provide kernel options. More... | |
NFC UPI KERNEL library export functions (with uniqe names to link several kernel libs in one project)
| KER_BOOL KER_API upiCheckOption | ( | KER_CTX_PARAM KER_TRAN * | pTran, |
| KER_INT16U | usOption, | ||
| KER_INT16U | usParam, | ||
| KER_VOID * | pParam | ||
| ) |
Check options callback Define this function outside the lib to provide kernel options.
| [in] | pTran | - pointer to the transaction structure (obtained by upiNfcTran) |
| [in] | usOption | - option to check (NFC_KER_OPT_DEBUG, NFC_KER_OPT_RRP) |
| [in] | usParam | - reserved. |
| [in] | pParam | - reserved. |
| KER_RES KER_API upiNfcDeInit | ( | KER_CTX_SINGLE_PARAM | ) |
Performs kernel de-initialization.
Terminal Application should de-init kernel by this function
| KER_RES KER_API upiNfcGetData | ( | KER_CTX_PARAM KER_TRAN * | pTran, |
| KER_INT16U | usOptions, | ||
| KER_BYTE * | pbtData, | ||
| KER_INT16U * | pusDataLen | ||
| ) |
Transaction data request.
call this function to obtain transaction data from kernel (as a flat TLV with all data available)
| [in] | pTran | - pointer to the transaction structure (obtained by upiNfcTran) |
| [in] | usOptions | - get options (bitmask), reserved |
| [out] | pbtData | - Buffer to obtain transaction data (in TLV) (path KER_NULL if you need to calculate tran data length only) |
| [in,out] | pusDataLen | - Size of Buffer pbtData as input, data length as output |
| KER_RES KER_API upiNfcGetDataByTag | ( | KER_CTX_PARAM KER_TRAN * | pTran, |
| KER_INT16U | usOptions, | ||
| const KER_BYTE * | pbtTag, | ||
| KER_BYTE | btTagSize, | ||
| KER_BYTE * | pbtData, | ||
| KER_INT16U * | pusDataSize | ||
| ) |
transaction data request
call this function to obtain transaction data by tag from kernel
| [in] | pTran | - pointer to the transaction structure (obtained by upiNfcTran) |
| [in] | usOptions | - get options (bitmask), reserved |
| [in] | pbtTag | - buffer with tag value |
| [in] | btTagSize | - pbtTag value length |
| [out] | pbtData | - buffer to obtain provided tag value |
| [in,out] | pusDataSize | - pbtData buffer size as input, output containes result data length |
| KER_RES KER_API upiNfcGetDataByTagList | ( | KER_CTX_PARAM KER_TRAN * | pTran, |
| KER_INT16U | usOptions, | ||
| const KER_BYTE * | pbtTagList, | ||
| KER_INT16U | usTagListSize, | ||
| KER_BYTE * | pbtData, | ||
| KER_INT16U * | pusDataSize | ||
| ) |
transaction data request
call this function to obtain transaction data by tag list from kernel
| [in] | pTran | - pointer to the transaction structure (obtained by upiNfcTran) |
| [in] | usOptions | - get options (bitmask), reserved |
| [in] | pbtTagList | - buffer with tag list |
| [in] | usTagListSize | - pbtTagList value length |
| [out] | pbtData | - buffer to obtain provided tag list in TLV format |
| [in,out] | pusDataSize | - pbtData buffer size as input, output containes result data length |
| KER_RES KER_API upiNfcInit | ( | KER_CTX_INIT_PARAM const KER_VOID * | pConfigID, |
| KER_INT16U | usConfigIDLen, | ||
| const KER_CHAR * | pchKernelFiles, | ||
| KER_INT16U | usKernelFilesLen | ||
| ) |
Performs kernel initialization.
| [in] | pConfigID | Buffer with configuration ID obtained from Terminal Application (in HAL recognized format) |
| [in] | usConfigIDLen | pConfigID buffer length |
| [in] | pchKernelFiles | buffer with kernel binary file names (for checksum calculation) - set of nul terminated strings ended by nul. |
| [in] | usKernelFilesLen | length of pchKernelFiles including nul-terminating sym |
Terminal Application should init kernel by this function before calling any other kernel functions
| KER_RES KER_API upiNfcTran | ( | KER_CTX_PARAM const NFC_EP_PRE_DATA * | pEpPRE, |
| const NFC_EP_PPSE_DATA * | pEpPPSE, | ||
| const NFC_EP_TRAN_DATA * | pEpTranData, | ||
| KER_TRAN ** | ppTran, | ||
| NFC_OUTCOME ** | ppOutcome | ||
| ) |
Initiates transaction processing by kernel.
This function initiates NFC transaction processing by kernel, based on Select command results (from EP)
| [in] | pEpPRE | - Entry Point preprocesing data |
| [in] | pEpPPSE | - Entry Point selected aid related PPSE data |
| [in] | pEpTranData | - transaction data maintained by Entry Point |
| [out] | ppTran | - pointer to obtain transaction context |
| [out] | ppOutcome | - pointer to obtain transaction outcome |
| KER_BOOL KER_API upiNfcTranRelease | ( | KER_CTX_PARAM KER_TRAN * | pTran | ) |
Releases NFC Transaction container structure.
| [in] | pTran | - pointer to the transaction structure to release (obtained by upiNfcTran) |
| KER_BOOL KER_API upiNfcVerInfo | ( | KER_CTX_PARAM const KER_CHAR ** | ppchEmvVer, |
| KER_INT16U * | pusEmvVerLen, | ||
| const KER_CHAR ** | ppchLibVer, | ||
| KER_INT16U * | pusLibVerLen | ||
| ) |
Obtains emv kernel library version info.
| [out] | ppchEmvVer | pointer to obtain reference to Kernel Specification version info (optional, set KER_NULL if you don't need it) |
| [out] | pusEmvVerLen | length of data, including nul-terminated symbol (optional, set KER_NULL if you don't need it) |
| [out] | ppchLibVer | pointer to obtain reference to kernel library version info (optional, set KER_NULL if you don't need it) |
| [out] | pusLibVerLen | length of data, including nul-terminated symbol (optional, set KER_NULL if you don't need it) |